package com.bluetron.supos.apps.adapters;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import cn.bluetron.supos.openapi.core.SuposApiClient;
import cn.bluetron.supos.openapi.core.entity.SuposVersion;

/**
 * supOS平台适配器
 * <p>
 * 具体的方法扩展，请参考项目：https://gitee.com/huang-jian-bo/supos-java-openapi-httpclient
 */
@Component
public class SuposApiAdapter {

    @Autowired
    private SuposApiClient suposApiClient;

    /**
     * 获取supOS平台版本信息
     *
     * @return
     */
    public SuposVersion getSuposVersion() {
        return this.suposApiClient.getSupOSVersions();
    }
}
